package Server;

import java.util.ArrayList;

/**
 * @author PZK
 *
 */
public class Project {

	private int id;
	private String name;
	private ArrayList<String> clients = new ArrayList<String>();
	
	public Project(int id, String name){
		
		this.id = id;
		this.name = name;
		
	}
	
	public void addUser(String name){
		
		clients.add(name);
		
	}
	
	public String getName(){
		
		return name;
		
	}
	
	public ArrayList<String> getClients(){
		
		return clients;
		
	}
	
	public int getId(){
		
		return id;
		
	}
	
	public boolean containsUser(String name){
		
		Boolean result = false;
		
		if(clients.contains(name))
			result = true;
		
		return result;
		
	}
	
}
